use sea_orm::{DeriveActiveEnum, EnumIter};

#[derive(EnumIter, DeriveActiveEnum)]
#[sea_orm(rs_type = "u8", db_type = "TinyUnsigned")]
pub enum TaskType {
    Project = 1,
    Commit = 2,
}

#[derive(EnumIter, DeriveActiveEnum)]
#[sea_orm(rs_type = "u8", db_type = "TinyUnsigned")]
pub enum TaskState {
    Init = 1,
    Awit = 2,
    Running = 3,
    Interrupt = 4,
    Success = 5,
    InterruptOk = 6,
}
